home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6222 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: asterix.uni-muenster.de!tiemant
  2. From: Stefan Tiemann <tiemant@uni-muenster.de>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: DataTypes/DTST_Ram Problem
  5. Date: Mon, 25 Mar 1996 19:16:45 +0100
  6. Organization: Westfaelische Wilhelms-Universitaet Muenster, Germany
  7. Message-ID: <Pine.A32.3.91.960325190020.33946A-100000@asterix.uni-muenster.de>
  8. NNTP-Posting-Host: asterix.uni-muenster.de
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11.  
  12. Hi!
  13. I want to call NewDTObjectA() with a buffer in ram, so I tried
  14. "DTA_SourceType, DTST_Ram", but i does not work (IoErr gives 0, but width,
  15. height and depth of the picture is is always 0, too). I tried to give the
  16. address of the buffer as "name" and/or as DTA_Handle, but always got
  17. the same result.
  18. Everything works fine, when I save the buffer to a file and call
  19. NewDTObjectA() with the filename in "name" and let DTA_SourceType be the
  20. default (DTST_File), but as the picture is included in a bigger file, this
  21. does not make much sense... or is it possible to Seek() to the position of
  22. the picture and give NewDTObjectA() the FileHandle (my first tests with this
  23. failed, too). 
  24. How do I have to give the address to NewDTObject? 
  25.  
  26. Bye
  27.    Stefan Tiemann
  28.